package be.shoktan.tutorial;

import org.apache.log4j.Logger;


public class HelloAction extends BaseAction {
	private static final long serialVersionUID = 4521919947005651320L;
	public static final String MESSAGE = "La vache quoi !!!";
	private static final Logger LOG = Logger.getLogger(HelloAction.class);
	
	private String message;
	public String execute(){
		if(LOG.isTraceEnabled())LOG.trace("execute()");
		setMessage(MESSAGE);
		return SUCCESS;
	}
	public String getMessage() {
		if(LOG.isTraceEnabled())LOG.trace("getMessage() :: "+message);
		return message;
	}
	public void setMessage(String message) {
		if(LOG.isTraceEnabled())LOG.trace("setMessage("+message+")");
		this.message = message;
	}
	
	
}
